package com.pmcc.cj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pmcc.core.entity.UUIDEntity;
import com.pmcc.utils.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 满减规则表
 * Created by tomas on 2020/9/5.
 */
@Entity
@Table(name = "cj_rule")
public class CjRule extends UUIDEntity {
    @Column(name = "money")
    private BigDecimal money;//满额度
    @Column(name = "sale_money")
    private BigDecimal saleMoney;//减少额度
    @Column(name = "create_time")
    private Date createTime;//创建时间
    @Column(name = "change_time")
    private Date changeTime;//变更时间
//    @Column(name = "employee_id")
//    private String employeeId;//修改人员
//    @Column(name = "employee_name")
//    private String employeeName;//修改人员姓名

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getSaleMoney() {
        return saleMoney;
    }

    public void setSaleMoney(BigDecimal saleMoney) {
        this.saleMoney = saleMoney;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Date changeTime) {
        this.changeTime = changeTime;
    }


}
